﻿using Volo.Abp.Reflection;

namespace YaAppoint.Admin.Permissions;

/// <summary>
/// 权限数据类
/// </summary>
public class AdminPermissions
{
    public const string GroupName = "Admin";

    public static string[] GetAll()
    {
        return ReflectionHelper.GetPublicConstantsRecursively(typeof(AdminPermissions));
    }

    public static class Books
    {
        public const string Default = GroupName + ".Books";
        public const string Create = Default + ".Create";
        public const string Edit = Default + ".Edit";
        public const string Delete = Default + ".Delete";
    }
}
